package ooday03;

import ooday04.Animal;
import ooday04.Swim;

public class Fishes extends Animals implements Swimming {

    @Override
    void eat() {
        System.out.println(age+"岁的，"+color+"色的小鱼"+name+"正在吃小虾");
    }

    @Override
    public void swim() {
        System.out.println(age+"岁的，"+color+"色的小鱼"+name+"正在游泳");
    }
    Fishes(String name, int age, String color){
        super(name,age,color);
    }
}
